package com.huilian.iotbox.admin.controller;

import com.huilian.iotbox.admin.service.MerchantPayCompanyService;
import com.huilian.iotbox.data.common.ServerResponse;
import com.huilian.iotbox.data.controller.BaseController;
import com.huilian.iotbox.data.dto.MerchantDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 龙 路 飞
 * @CreateDate: 2021-10-20 16:29
 * @Description:
 */
@RestController
@RequestMapping("/api/merchantPayCompany")
public class MerchantPayCompanyController extends BaseController {
    @Autowired
    private MerchantPayCompanyService merchantPayCompanyService;
    @GetMapping("/findMerchantPayCompany")
    public ServerResponse findMerchantPayCompany(String merchantId){
        MerchantDto merchantDto = new MerchantDto();
        merchantDto.setMerchantId(merchantId);
        return ServerResponse.createBySuccess(merchantPayCompanyService.findMerchantPayCompany(merchantDto));
    }
}
